/* 基础布局设置 */
html,
body {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
    background: #041329;
    font-family: 'AlibabaPuHuiTi', sans-serif;
}

/* 字体定义 */
@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('/fonts/Alibaba-PuHuiTi-Regular.woff2') format('woff2'),
        url('/fonts/Alibaba-PuHuiTi-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* ------------------ 地图层容器 ------------------------------------ */
#map-layer {
    /* 基础尺寸与定位上下文 */
    position: absolute;
    height: 1080px;
    width: 1920px;
    top: 0;
    left: 0;

    z-index: 1;
    /* 确保地图位于底层 */

    /* margin-bottom: 15px; */
    /* 核心定位基准 */

    /* overflow: hidden; */
    /* 防止内容溢出干扰定位 */

    /* 样式增强 */
    /* background: #d1d3fb64; */
    /* border-radius: 8px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.map-controls {
    /* 控制层容器 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* 允许穿透点击地图 */
    z-index: 1000;
    /* 控制层最高优先级 */
}

.map-renderer {
    position: relative;
    z-index: 500;
    /* 低于控制层 */
    height: 100%;
    /* 必须设置容器高度 */
}

/* 自定义控件样式 */
.custom-control {
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* 菜单展开样式 */
.menu-expanded {
    width: 160px;
    transition: all 0.3s ease;
    /* 动画效果 */
}

.function-buttons {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.function-buttons.active {
    display: flex;
}

button.import-kml {
    /* 按钮定位体系 */
    position: absolute;
    top: 14px;
    left: 50px;
    pointer-events: auto;
    /* 恢复点击事件 */

    /* 视觉设计增强 */
    padding: 2px 2px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Segoe UI', system-ui;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.05);
}

button.import-kml:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.15),
        0 6px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

button.import-kml:focus {
    outline: 3px solid rgba(99, 102, 241, 0.4);
    outline-offset: 2px;
}

/* 响应式适配 */
@media (max-width: 1600px) {
    #map {
        width: 90%;
        height: 70vh;
    }
}



/* ------------------ 内容层容器 ------------------------------------ */
#content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* 确保内容层在上方 */
    pointer-events: none;
    /* 禁用所有鼠标事件 */
}

/* 内容层中的块元素 */
.block {
    pointer-events: auto;
    /* 恢复鼠标事件 */

    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.block h2 {
    color: #00f2fe;
    font-size: 1.2rem;
    margin: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
}

/* ============标题栏区============ */
.title-bar {
    height: 80px;
    /* background-image: url('/images/title-bg.jpg'); */
    background: linear-gradient(to right,
            rgba(0, 102, 204, 0.8),
            rgba(0, 153, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.title-bar h1 {
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.showTime {
    position: absolute;
    top: 40px;
    right: 20px;
    line-height: 0.9375rem;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============数据展示区============ */
.data-layer {
    display: flex;
    height: calc(100vh - 162px);
    padding: 20px;
    gap: 15px;
}



/* ====左侧栏==== */
.left-column {
    width: 25%;
    display: flex;
    flex-direction: column;
}

/* 项目概况 */
.project-overview {
    height: 33%;
    margin-bottom: 15px;
}

.project-overview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

/* 环保要求 */
.env-requirements {
    height: 33%;
    margin-bottom: 15px;
}

/* 滚动框 */
.scroll-box {
    height: 180px;
    overflow: hidden;
    position: relative;
    color: #c0d8f0;
    line-height: 1.6;
}

/* 项目进度 */
.achievement {
    height: 33%;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    padding: 6px;
    background: rgba(0, 64, 128, 0.5);
    color: #d5d5d5;
    margin: 18px;
}

.result-item span,
.result-item b,
.result-item i {
    flex: 1;
    text-align: center;
}

/* .scroll-content {
    position: absolute;
    width: 100%;
    transition: top 0.8s ease-in-out;
} */

/* ====中间栏==== */
.middle-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    height: 33%;
    width: 50%;
    margin-bottom: 15px;
    position: relative;
    top: 66.7%;
}

/* 生态流量监控 */
.eco-flow {
    height: 84%;
    margin-bottom: 15px;
}

/* 监控视频 */
video {
    width: 100%;
    height: 214px;
    object-fit: cover;
    border-radius: 4px;
}

/* 管控措施 */
.control-measures {
    height: 84%;
    margin-bottom: 15px;
}

/* ====右侧栏==== */
.right-column {
    width: 25%;
    display: flex;
    flex-direction: column;
}

/* 水环境监测 */
.water-env {
    height: 33%;
    margin-bottom: 15px;
}

#water-chart {
    height: 200px;
    width: 400px;
    /* background: #000; */
}

/* 空气质量监测 */
.air-quality {
    height: 33%;
    margin-bottom: 15px;
}

#air-chart {
    height: 200px;
    width: 400px;
    /* background: #000; */
}

/* 噪声质量监测 */
.noise-quality {
    height: 33%;
    margin-bottom: 15px;
}

#noise-chart {
    height: 215px;
    width: 400px;
    /* background: #000; */
}

/* ============状态栏区============ */
.status-bar {
    height: 40px;
    background: rgba(0, 40, 80, 0.474);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: #fff;
    font-size: 0.9rem;
}

.left-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    filter: brightness(0) invert(1);
}